package nj.yb.entity.user;

import java.util.Date;

public class Friend {
    private Integer id;
    private Integer userId;
    private Integer friendId;
    private Date createTime;
    private User friendInfo;

    public Friend(Integer id, Integer userId, Integer friendId, Date createTime, User friendInfo) {
        this.id = id;
        this.userId = userId;
        this.friendId = friendId;
        this.createTime = createTime;
        this.friendInfo = friendInfo;
    }

    public Friend() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFriendId() {
        return friendId;
    }

    public void setFriendId(Integer friendId) {
        this.friendId = friendId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public User getFriendInfo() {
        return friendInfo;
    }

    public void setFriendInfo(User friendInfo) {
        this.friendInfo = friendInfo;
    }

    @Override
    public String toString() {
        return "Friend{" +
                "id=" + id +
                ", userId=" + userId +
                ", friendId=" + friendId +
                ", createTime=" + createTime +
                ", friendInfo=" + friendInfo +
                '}';
    }
}
